package com.xy.classadapter;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/11 14:12
 * @description
 */
public class VoltageAdapter extends Voltage220V implements Voltage5V {

    @Override
    public int output5V() {
        int src = output220V();
        int dst = src / 44;
        System.out.printf("适配器将%d伏====>%d伏\n", src, dst);
        return dst;
    }
}
